<?
	$url = $_SESSION['url'];
	$mess = "";
	if(isset($_POST['submit'])){
		$bl_cat = $_POST['typeID'];
		$bl_link = $_POST['link'];
		$bl_chitiet = $myString->unQuote(stripslashes($_POST['txtContent']));
		$db->query("INSERT INTO ".$prefix."gopy(bl_cat,bl_link,bl_chitiet,bl_tinhtrang) VALUES('".$bl_cat."','".$bl_link."','".$bl_chitiet."',0)");
		echo "<script>alert('Cám ơn bạn đã đóng góp ý kiến ! BQT sẽ xem xét và xử lý sớm nhất !'); window.location='".$root."/trang-chu/';</script>";
	}
?>
<div id="linkPath">
<div class="linkPath">
    <div class="corner-round-01-top-right">
        <div class="corner-round-01-top-left">
            <div class="corner-round-01-top-bg"></div>
        </div>

    </div>
    <div class="corner-round-01-body">    
        <span style="float: left;"><a href="<?=$root?>/trang-chu/">Trang chủ</a> &raquo; Comment</span>
        <span style="float: right;"><a title="Quay lại trang trước" class="link-back" href="javascript:void(0);" onclick="javascript:history.go(-1);">Quay lại</a></span>
        <div style="clear: both;"></div>
    </div>
    <div class="corner-round-01-bottom-right">

        <div class="corner-round-01-bottom-left">
            <div class="corner-round-01-bottom-bg"></div>
        </div>
    </div>   
</div>    
    </div>
    <!-- Main Page-Content { -->    
<div id="page-content">      
         
<div id="CommentEdit">
    <div class="corner-round-02-top-right">
        <div class="corner-round-02-top-left">

            <div class="corner-round-02-top-bg"></div>
        </div>
    </div>

    <div class="corner-round-02-body">
<form action="" name="frmBaoLoi" id="frmBaoLoi" method="post">	
       <div class="userAddFriend" style="overflow:hidden;height:auto;">
	        <input type="hidden" id="action" name="action" />
	        <h3 class="form-header" style="margin-top:0px;padding-top:0px;">Nội dung báo lỗi - Góp ý</h3>
		    <p class="form-line"></p>
		    <div style="padding-left:150px;">	
		        <div style="padding-bottom:5px;color:Gray;">
		            <b>Báo lỗi / góp ý về</b>:
		        </div>
		       
			    <div style="padding-bottom:10px;">
		        <select name="typeID" style="width:625px; text-align:left;">
		            <?
						for($i=0;$i<count($arrGopY);$i++){
					?>
					<option value="<?=$i?>"><?=$arrGopY[$i]?></option>
					<? } ?>
		            
		        </select>
		        </div>	
		        <div style="padding-bottom:5px;color:Gray;">

		            <b>Đường dẫn:</b> <span style="color:Red"><?=$url?></span>
		        </div>	        		        
		        <div style="padding-bottom:5px;color:Gray;">
		            <b>Nội dung:</b>
		        </div>
			    <textarea id="txtContent" name="txtContent" cols="80" rows="8" style="border:solid 1px #CCCCC;font-size:10pt;font-family:Verdana;width:620px; height:200px"></textarea>			    
			    <div style="margin: 10px 0 0 0px;">
					<input type="hidden" name="submit" id="submit" value="submit" />
					<input type="hidden" name="link" id="link" value="<?=$url?>" />
			        <input type="image" id="accept" name="accept" src="<?=$root?>/themes/images/form/button-sent.jpg" />			
		        </div>
		    </div>
			
        </div>
	</form>	
		
    </div>

    <div class="corner-round-02-bottom-right">
        <div class="corner-round-02-bottom-left">
            <div class="corner-round-02-bottom-bg"></div>
        </div>

    </div>  
    <br /> 
</div>
    </div>
    <div style="clear:both;"></div>      
    <!-- } Main Page-Content -->  

                 <div id='zEventZone' style="margin:0px auto;text-align:center;padding-bottom:10px;"></div>

            </div>
